package com.jvyou.subject.application.controller;

import com.jvyou.subject.infra.basic.entity.SubjectCategory;
import com.jvyou.subject.infra.basic.service.SubjectCategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 橘柚
 * @since 2024/9/23 23:28
 */
@RestController
@Slf4j
@RequestMapping("/subject")
public class SubjectController {

    @Resource
    private SubjectCategoryService subjectCategoryService;

    @GetMapping("/hello")
    public List<SubjectCategory> hello() {
        return subjectCategoryService.list();
    }

}
